<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<%
	//获取检验详细记录
	String reportNo = input.getDesc("reportNo","6199225");//报告单号
	
	List lis = QBuilder.db("lisdb").queryHql("select new map (reportNo as reportNo, testItemCode as testItemCode, testItemName as testItemName ,testResultValue as testResultValue ,ResultValueUnit as ResultValueUnit ,referenceRanges as referenceRanges ,ResultDesiption as ResultDesiption ,case ResultDesiption when 'H' then 3 when 'L' then 2 when 'P' then 1 else 0 end as orderNum) from checkDetil where reportNo ='" + reportNo + "' order by orderNum desc");
	
	Message msg = new Message();
	msg.put("errcode",0);
	msg.put("data",lis);
	out.println(msg);
%>